import requests

url = "http://ihrm-test.itheima.net/api/sys/login"
json_data = {"mobile": "13800000002", "password": "123456"}
resp = requests.post(url=url, json=json_data)
print(resp.json())
# url = "http://ihrm-test.itheima.net/api/sys/user"
# head = {"Authorization": "Bearer c1243aa5-b55e-4ba5-bbcf-8a1dd2707c93"}
# data = {"username": "xiaomi",
#         "mobile": "18973474849",
#         "workNumber": "9527"}
# resp=requests.post(url=url,headers=head,json=data)
# print(resp.json())
url = "http://ihrm-test.itheima.net/api/sys/user/1452082510107246592"
head = {"Authorization": "Bearer c1243aa5-b55e-4ba5-bbcf-8a1dd2707c93"}

resp=requests.get(url=url,headers=head)
print(resp.json())


